package com.force.common.mybatisplus.plusbase;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BaseVo implements Serializable {
	private static final long serialVersionUID = 2L;


	/** id */
	private Long id;


	/** 创建时间 */
	@Schema(title = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/** 更新者 */
	@Schema(title = "更新者id")
	private Long updateById;

	/** 更新者 */
	@Schema(title = "更新者name")
	private String updateName;

	/** 更新者 */
	@Schema(title = "更新者name")
	private String updateBy;

	/** 创建者 */
	@Schema(title = "创建者")
	private Long createById;

	/** 创建者 */
	@Schema(title = "创建者")
	private String createName;

	/** 创建者 */
	@Schema(title = "创建者")
	private String createBy;

	/** 更新时间 */
	@Schema(title = "更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	/** 备注 */
	@Schema(title = "备注")
	private String remark;

	/** 请求参数 */
	@Schema(title = "请求参数")
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private String params;

	@Schema(title = "逻辑删除")
	private Integer delFlag;

	@Schema(title = "逻辑启用")
	private Integer enableFlag;

}
